#733 Don't scroll past last item

Add a check to make sure focusIndex doesn't exceed the length of the worksheet