job_queue: fix order of events, on_finished before on_stop

... otherwise, the active queue hasn't been updated before the next
runnable job check is performed.