Fixed warnings and NPE in self-updater