Fixed a bug for zero partition in JobWaiter.