if format is unknown NullMimeTypeObject is returned

Backporting this commit so that request.format is never nil