[FIX] mail: misc bug fixing

Task: https://www.odoo.com/web#id=7488&view_type=form&model=project.task&action=333&active_id=131
Pad: https://pad.odoo.com/p/r.CPNLjsWjE74wMfj3