Use value error when invalid indexes are supplied to get-index.