[ticket/12949] Check if mime_content_type is actually callable

PHPBB3-12949
Merge pull request #2851 from marc1706/ticket/12949

[ticket/12949] Check if mime_content_type is actually callable