sanitizeSelectionIndex

fun sanitizeSelectionIndex(lastSelectedIndex: Int): Int

Checks selectedResultIndex if it's still within the bounds of the result list and if not returns a valid index