add hash only if truncateHash is defined

avoid to have file with undefined hash when truncateHash is not set
Update asset-itterator.js
Merge pull request #5 from interactive-object/master

bug fix for file create with "-undefined" hash