We have to distinguish between two algebraic structures with appropriate homomorphisms between them (in fact, they constitute categories)
$\bullet$ Rings (which I always assume to be unital) with homomorphisms of rings.
As always, a homomorphism of blupp preserves the whole structure of blupp, so in particular for blupp=Ring the unit is preserved by definition. This definition is (or should be ...) universally accepted.
$\bullet$ Rngs or non-unital rings with homomorphisms of rngs
Following the general principle, a homomorphism of rngs preserves the addition and the multiplication (and then also additive inverses and the zero), but not the unit because there is none.
There is a so-called forgetful functor from Rings to Rngs which forgets the unit. Notice that if $R$ is a ring, the underlying rng $|R|$ is a different object (and similarly for homomorphisms). This is usually ignored in textbooks and lectures, leading to utter confusions. Similar problems arise with other forgetful functors. These problems will end immediately when we take forgetful functors seriously. Unfortunately, some authors consider rings with unit but consider also non-unital homomorphisms between them, which doesn't make sense at all because this actually ignores the general principles of universal algebra, secretly applies the forgetful functor all the time, and doesn't take rings seriously. And some authors even don't consider $0$ as a ring because "it has no unit", sic! Of course the zero ring is a ring. It's quite cold these days, so books following this approach would make a warm fire ...
Anyway, now the question is easily answered:
Let $f : R \to R'$ be a homomorphism of rings (thus preserving the unit by definition). Then $f=0$ iff $R'=0$. It doesn't matter if $R$ is a field or not, the condition doesn't depend on $R$ at all.
On the other hand, there is always a zero homomorphism of the underlying rngs $0 : |R| \to |R'|$. Notice, again, that these are different objects than the rings themselves!
This is just an error in the Wikipedia page; the assumption that the image is not the zero ring is unnecessary. If ring homomorphisms are not defined to be unital (that is, $f(1)=1$), then it is necessary, since otherwise $f$ could just map everything to $0$. However, the Wikipedia page does define ring homomorphisms to be unital, so this is not an issue.
Best Answer
Yes, this proof looks good to me!