Fixed #23444 -- Prevented unnecessary ContentType object creation when using inlines