Fix EZP-16947: attribute_view_gui view=myview does not work when TemplateCompile is enabled