I think if GH2 development would have been a bit faster, we could already retire GH1. These bugs are known for more than 10 years, and personally I don’t see a benefit in solving it anymore. Currently there are similar topics active, but I think fixing an almost deprecated software is pointless. It would affect many components.
Just ensure not to work with empty strings or branches. This is bad in many ways anyways.
The result is obviously wrong, but you may conclude the wrong problem. You implicitly convert strings to int. It should be explicit only (by a conversion component), which should throw an exception when parsing empty strings.
In this regard I also think that the GH2 solution may create more problems if it allows null states. A null will almost always create a problem somewhere. There is always a piece of code which doesn’t check against null and fails because of this. It will just occur much later and cause lot of confusion.
Other than that, Null times 4 is not null nor is it 4. It should not doable because value types are not nullable. Without an exception I would expect 0 or NaN. So I also think GH2 does something wrong here. But these edgecases are debatable, and should be avoided therefore.