Fix header Content-Type: #<Mime::NullType:...> in localized template

This PR fixes #13064 regression bug introduced by the #8085

Ideally the NullType object would act like NilClass unfortunately
that appears to be hardwired into MRI, as we know nil.to_a -> []