Safe check so we don't move cursor beyond possible pos scope.

Bug: 28278372
Change-Id: I7c66b5229ae3a6a1b99bdf0f02bf1f0b8a1c79b2
1 file changed