catch protected errors when deleting line items (due to credit lines)
Merge pull request #3332 from dimagi/fix-invoice-trigger

catch protected errors when deleting line items (due to credit lines)