Error when emailing invoice

Related:
https://community2.invoiceplane.com/t/topic/4666
https://community2.invoiceplane.com/t/topic/4416