PlanManager: Fixing a bug when sending error notifications