Work only on running jobs by default

Queued jobs will only be queried when it is time to start a new one.
Remove check for zero tasks

When the master is under load, this check hurts more than it helps. When
it isn't, it doesn't matter anyway.
Fix syntax error