Don't crash when entering a value into cell at MAXROW position.

Beucase that would be bad.

Change-Id: I7ce22105d88346f1cda12897eb57923dee8bd467
(cherry picked from commit a6070efb880e4c8fca54b900e807d9233bcb25fd)