Fix another bug in pilot job checking.