Avoid double-decrement of level->todo

If a job's dispatch function deletes the job, we may end up decrementing
the job queue's todo count twice. Verify that the job is on the queue
before decrementing.
Merge pull request #87 from anchor/del-during-dispatch-v2

Avoid double-decrement of level->todo