BUG: make matlab happy with empty sparse arrays

Closes gh-4208
TST: add test for empty sparse matrix write

Check that writing empty sparse uses max nnz of 1.
Merge pull request #4212 from matthew-brett/test-sparse-patch

MRG:fix for gh-4208