If `numberOfCreationWorkers` changes, the `subTasks` for-loop below can crash when the array elements are `undefined`.