BUG: IntervalIndex.get_loc/get_indexer wrong return value / error
- [x] closes #25087
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
