Fixed warnings and NPE in self-updater
Merge pull request #254 from msteiger/warnings

Fixed warnings and NPE in self-updater