Follow-up 42333412833a - Fix behaviour $wgVerifyMimeType = false;

Should probably be backported to stable.

Bug: 49717
Change-Id: If1d6e8fed575bf2816a10db066ec4e023460ee1e
Merge "Follow-up 42333412833a - Fix behaviour $wgVerifyMimeType = false;"