Before trying to scroll to a listing, check that the selection is not empty, in which case an error would be thrown.