Fix assignment of tasks to dead trackers.

Sometimes after we kill a tracker, we try to assign tasks to it because
the heartbeat expiry period hasn't been reached.

This should resolve the large number of 'killed trackers' problem.

CC @airbnb/di