Don't update metadata when there's no file
Don't create an asset when there's no file
Tests
Merge pull request #44 from theodi/bugfix-stop-errors-when-no-attachment

Stop errors when attachment file is nil