:art: safer check when editor.getPath() is invalid
:art: safer check when editor.getPath() is invalid

- returns early when editor path is null, empty string or undefined

samu/tree-view,jarig/tree-view,learn-co/learn-ide-tree,atom/tree-view