Updated code to fix select all bug

https://github.com/angular-ui/ng-grid/pull/1270