fix 4.x upgrades when an invoice with a discount was deleted instead of voided, RT...