fix(uiGrid): Fix race condition in data watcher
fix(uiGrid): Fix race condition in data watcher

modifyRows is now passed the most recent data that the dataWatchFunction has seen
Fixes race condition when retrieving templates via URL.
$q.all promise in dataWatchFunction would resolve and pass in outdated
grid data from the original dataWatchFunction call.

Fixes #4532

ntmuigrid/ntmuigrid,kamikasky/ui-grid,kenwilcox/ui-grid,angular-ui/ng-grid,AgDude/ng-grid,dlgski/ui-grid,kamikasky/ui-grid,Cosium/ui-grid,louwie17/ui-grid,aw2basc/ui-grid,Servoy/ng-grid,JLLeitschuh/ui-grid,aw2basc/ui-grid,InteractiveIntelligence/ng-grid,YonatanKra/ui-grid,YonatanKra/ui-grid,dbckr/ui-grid,InteractiveIntelligence/ng-grid,bjossi86/ui-grid,imbalind/ui-grid,yccteam/ui-grid,Servoy/ng-grid,yccteam/ui-grid,bjossi86/ui-grid,InteractiveIntelligence/ng-grid,mportuga/ui-grid,mportuga/ui-grid,Cosium/ui-grid,louwie17/ui-grid,JLLeitschuh/ui-grid,angular-ui/ui-grid,ntmuigrid/ntmuigrid,kenwilcox/ui-grid,kenwilcox/ui-grid,angular-ui/ui-grid,AgDude/ng-grid,yccteam/ui-grid,ntmuigrid/ntmuigrid,dbckr/ui-grid,louwie17/ui-grid,mportuga/ui-grid,angular-ui/ng-grid,aw2basc/ui-grid,kamikasky/ui-grid,imbalind/ui-grid,dlgski/ui-grid,AgDude/ng-grid,YonatanKra/ui-grid,Servoy/ng-grid,dbckr/ui-grid,angular-ui/ng-grid,angular-ui/ui-grid,JLLeitschuh/ui-grid,dlgski/ui-grid,imbalind/ui-grid,Cosium/ui-grid,bjossi86/ui-grid