only generate derivative after master file has needed metadata
Merge pull request #308 from nla/js-amberDb-fix

only generate derivative after master file has needed metadata