Fixed a bug in the way the coordinator checks for the completion of
tasks.