Fix NullPointerException due to lack of file extension
Fix the NullPointerException errors seen. Fixes #79.
Merge pull request #80 from buddycloud/issues/79

Fix issues uploading a file with an unknown mime-type