TRQ-2083. Fix a regression caused when changed the way job polling works.