CB-3038: Avoid crash when no path can be resolved

With this pull request, the `error` callback from `navigator.camera.getPicture` will be invoked with the error `Unable to retrieve path to picture!`