Fix waitForTask() in overlord accessor.