HOTFIX: Fix infinite loop in AbstractIndex.indexSlotRangeFor (#7702)
HOTFIX: Fix infinite loop in AbstractIndex.indexSlotRangeFor (#7702)

Fixes regression from #5378 which causing an infinite loop in `binarySearch`.

Reviewers: Ismael Juma <0794a5c7e497910d682bf2c54c66cc30760c0221@juma.me.uk>
noslowerdna/kafka,TiVo/kafka,apache/kafka,sslavic/kafka,apache/kafka,lindong28/kafka,TiVo/kafka,sslavic/kafka,guozhangwang/kafka,noslowerdna/kafka,guozhangwang/kafka,noslowerdna/kafka,Chasego/kafka,Chasego/kafka,apache/kafka,guozhangwang/kafka,Chasego/kafka,TiVo/kafka,apache/kafka,TiVo/kafka,sslavic/kafka,guozhangwang/kafka,Chasego/kafka,sslavic/kafka,lindong28/kafka,lindong28/kafka,noslowerdna/kafka,lindong28/kafka