Defect/display issue when scroll index is out of bounds after data update

Hi there,

I'm submitting some code changes to fix a situation where the ng-cells content would not be displayed properly when we set a new "data" array that is smaller than the previous one and the user had scrolled down to an index that no longer exists in that smaller data array.

Feel free to let me know if you have any questions.

Regards,

David