On homomorphisms between products of median algebras