catch and log generic exceptions when creating invoices
Merge pull request #3310 from dimagi/catch-all-exceptions

catch and log generic exceptions when creating invoices