Fix NPE when uninstalling app