ECMS-5428: Update ActivitiesUpgradePlugin to fix the problem while migrating content activities that have target node was moved or deleted