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

Curiosu what others think on this style point (@rxin)?