task: fix the dropped-mdi bug

Task is not Done if there's stuff on the mdi execute queue.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
task: remove some dead code

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
Merge remote-tracking branch 'origin/2.6' into 2.7