Fix deadlock if qorder specifies an invalid second job

We hit this on Titan this morning.  Simple fix