Optimize mimeType detection when no mimeType is specified
Don't redo mimeType detection when there's probably no mimeType available.