Don't run workflow tasks for deleted entities

This fixes the workflow cron stopping because the entity was deleted
before the task was executed.