Fix mimetype() when the type isn't found