Throw exception if no templates found