Unreviewed debug build fix for ports enabling the <template> element support.