Throwing an exception if no templates were found during bind phase