This change was made intentionally in version 2.91+.  Essentially something shouldn't be able to exist in the system, in this case the record of a stock sale, that's the payment of a donation prior to that donation existing in the system.