Merge "Prevent crash from null ApplicationInfo after package is removed." into nyc-dev