Fix issues for custom elements
Fix issues for custom elements

PiperOrigin-RevId: 389208453

google/closure-templates,google/closure-templates,google/closure-templates,google/closure-templates,google/closure-templates