Extension: nette.templateFactory fix