[1.5.x] Fixed #19714 -- Updated documentation about TemplateView context

Thanks Aramgutang for the report. Refs #17228.
Backport of 56e553129 from master.