Fix bug whereby if emailing two invoices and one does not have an email address, both invoices are attached to the one with an email address
If I email two invoices for two separate clients, but one does not have an email address, currently both invoices are attached to the one client who has an email address. This can lead to invoices being set to incorrect clients.