fix applying a credit against an invoice which has had its tax config removed, RT#23949