Fix get deploy job when deploy module of agent has been disabled between prepared task and agent request the jobs. closes #2638