TST:Test to_sparse with nan dataframe (#10079)
 - [x] closes #10079
 - [x] tests added / passed
 - [x] passes ``git diff upstream/master | flake8 --diff``

Possibly fixed with a PR that fixed one of #10627. Look like `to_dense` is fixed for 0.20.0, but should be unrelated to this. 