Checks if a matrix is a zero matrix.