MESOS-2038: removed dead code from _runTask().

Review: https://reviews.apache.org/r/27567