Allow get-index to handle negative indexes.