trq-2333 Don't access an array with a -1 index.