BUG: hash_array TypeError instead of AttributeError on Index GH#42003
- [x] closes #42003
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry

updated + greenish prob worth a whatsnew note as well here (followon fine)