GROOVY-6194: Exclusive range operation results in wrong result with negative index