Fix bug in sparse indexed output of empty matrices

Don't try to output the bottom right zero of an empty matrix.