TemplateLoader have to exit when no main template