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.
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.