[FIX] account: prevent crash onchange company_id

(rebase of #1534)