fix #7650 reshape of empty sparse matrices