checking to see if plan ids on catalog sync

[#56551954]
Ensure AppEvents are deleted before deleting their (soft deleted) apps

Signed-off-by: Joseph Palermo <jpalermo@pivotallabs.com>