Fixed exception thrown when there was not mimetype present