fix apportionment of flat fees on zero-charge invoices, #39816