Without this change, mappings will be created even after AlreadyHave equals true, and will never be erased.
A small fix, probably would never have caused a problem, other than filling unbounded and potentially using up more memory than needed. Might be quite significant is bitcoind is left running for a long period of time.