TST: Add regression test for NaN sparse columns
- [x] closes #27781
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature

Thanks @ConnorMcKinley 