Throwing an exception if no templates were found in hte binding phase