[DF-5258] Fixed possible infinite wait, when working with JobManager