Revert "TemplateLoader have to exit when no main template"

This reverts commit 965e744b3fe83efc49d02b7b51a8cc1df87cd715.