Fix NPE when uninstalling app

See https://github.com/CyanogenMod/android_packages_apps_Trebuchet/commit/55241e57fddfac64d0cc2e8895bfa7452b511c0d