When there was no company_id in the context and the company with id=1 didn't exist it generated an error. opw:1838932