fixed bug where invalid mimetypes were messing up mimetype negotiation