Fix a bug in set_contents_from_file where it wasn't setting md5 properly.
Merge pull request #1250 from jterrace/fix-double-set-contents-bug

Fix a bug in set_contents_from_file where it wasn't setting md5 properly