Fixed str.split IndexError with Empty String and expand=True

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

dupe of #20067 sorry that one was first :(