fixed wrong predicate when looking for tasks assigned to a gone agent.