Fixed bug in RawTemplateInjector regarding TemplateNamer

Fixed a small mistake. Even when TemplateNamer is set, the default one is used.