correctly pass arguments when manually re-emailing/printing invoices, #26076