Patch ng-grid to prevent undefined errors