Throw an exception for missing templates