Fix ghost job when submitting job after all jobids are exhausted.

Bug 1327