Backport #11437 to 4-0-stable. Fix default rendered format when calling render method without :content_type option.

Please see #11393 and #11437.

/cc @guilleiguaran If unnecessary, please close this PR.