Call validation of tf before saving / running sample

currently there is no indication of a malformed tf except when validating manually

(from redmine: issue id 817, created on 2018-01-22tgradl)