[SPARK-4626] Kill a task only if the executorId is (still) registered with the scheduler