Let $S$ be a base scheme,  $f \colon X \to S$ a finitely presented  morphism, and $Y \to S$ an affine morphism. Suppose that $f$ is faithfully flat and separated with connected reduced geometric fibers. Also, suppose that $f$ is proper over a (topologically) dense subscheme $U$ of $S$. Is it true that every morphism $g \colon X \to Y$ over $S$ is constant (i.e., factors through a section $S \to Y$)?