added safe $apply() fix for angular-kendo.js