Fix index out of bounds bug

Currently if you try to scroll past the bottom of the list when there are more matches than can be displayed, you get a nasty index out of bounds exception.

This fixes it.