BUG: Fix wrong SparseBlock initialization
- [x] closes #17198
- [x] tests added / passed
    
    Passed the same tests which the current master branch pass.
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
