BUG: Fix skiplist init error with empty window
- [x] fixes MemoryError issue in #26005
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
