add a test to check zero index array do not error
refs GH-21946

- [x] closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [na] whatsnew entry
