Fix the order of operations in checking joining jobs.
Merge branch 'master' of https://github.com/adaptivecomputing/torque