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

v1.1 backport for #3483