Handle error in getPath's callback

fix https://github.com/benderjs/browser-launcher2/issues/16