Add a check for non-zero CPUs in TaskSetManager