Handle editing new files.

`editor.getUri()` returns `undefined` when editing a new file. This change
prevents the path errors; however, the default (or home) configuration will
be used.