This is a bad idea, as if it takes effect then it will change txids and
thus can break chains of transactions. Also, it simply does not belong in
this function.
(Introduced in D2086, maybe it helped then but not needed anymore.))
Also, fixes test that relied on this behaviour.