privacy guard: Fix crash when uninstalling an app