fix displaying invoices with credits, RT#23123, fallout from RT#21293