fixed bad reference to a not existing editorView

When closing several coffeescript files very fast, the last one is closed before the pending method can be called on it. Asking for existence does the trick here, while the editor view itself is checked 2 lines later explicitly.