WIP: suggested fix for gh-4208

Write max number of non-zeros as 1 when sparse matrix is empty.  Otherwise
MATLAB does not want to read the written array.