This can happen if the event is fired before the templates are added to the grid. You can try checking if there are templates in the collection before accessing it.
I hope this will be useful.
Regards,
Dimitar
Progress Telerik
Get quickly and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.