Handle pivot point only if matrix is not null.