Handle editor destruction when dragging. 

Closes #4622
Merge pull request #4655 from atom/bo-fix-dragging

Handle the case when the editor is destroyed while dragging