Prefer Editor.getModel().
Temporary workaround for an Atom bug.