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