Fix exception when fileinfo isn't avaliable

Additional work may be required if you want to do something special when a mime type isn't found.
I'd suggest throwing an exception and handling that in the appropriate component.