Add support for empty sparse matrices