BUG: sparse: coo_matrix.todia() would fail when the matrix was all zeros.