Fix "Git Plus: Add (all)" without open editor

In the context, it would give a type error because
`atom.workspace.getActiveEditor()` was `undefined`.