Fixed problem generating revenue reports when invoicing raised errors