Start scheduler on agent only if one is assigned

Shouldn't be a big deal in practice, because tasks with no agent
assigned will not reach "DONE" or "FAILED" states, it did break
a unit test, though.