Fix in native file dialog to avoid NPE in case of communication error.