Fixed #23789 -- TemplateResponse handles context differently from render