with-editor-locate-emacsclient: deal with nil invocation-directory

See magit/magit#1443.