ProtectedApps: prevent NPE after app removal

Change-Id: Icf3ecfdf12ac92a8eb99787855cf067d03c46ed3