[FIX] mail: Check if attachment has mimetype
[FIX] mail: Check if attachment has mimetype

- Check if the attachment has a mimetype before trying to split its value.

ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo