Handle case where editor has no path, fixes #11

Previously, typing a `/` in an editor without a path would throw an error