When upgrading mail across the addition of the linked record's company and mail alias, if the `composer.model` is not part of a module that's already loaded (which is very likely) the compute will blow up when it tries to look up the model in the env. Add that check to the condition. closes odoo/odoo#139845 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>