Fixed a bug in the mime type validation process.