Fix PHP notices when calling getWorkers