fix(code-editor): do not reload a document sharedb is still destroying (#2182)