Return position of first mismatch in search string, or nil if none. If MSG is non-nil, use `isearch-message', otherwise `isearch-string'.