fix foreign keys to voided payments in advance of 4.x upgrade, #13971