Fixed #21707 -- Checked for missing context when 'super' used in base te...

...mplate.