Let $S$ be a base scheme,  $f : 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 subset $U$ of $S$. Is it true that every morphism $g : X \to Y$ over $S$ is constant (i.e., factors through a section $S \to Y$)?