[Nighly-test] fix get cpu resource in test_scheduling #29292
[Nighly-test] fix get cpu resource in test_scheduling #29292

CPU could be empty on Raylet initialization. Closes #29290
ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray