Handle case when mime-type is None
Merge pull request #3 from yprez/fix-mime-type-none

Handle case when mime-type is None