Fix a bug in Worker where Worker will stop when there is no task.