function normalizeSelection(index, length) {
  const normalizedIndex = index % length
  return normalizedIndex < 0 ? length + normalizedIndex : normalizedIndex
}
Normalize index of selected item.
Index should be >= 0 and <= results.length

@param  {Integer} index
@param  {Integer} length current count of found results
@return {Integer} normalized index