Tweaked TemplateHelper::replaceHomogeneousTemplates() - no functional change intended