fix: fix possible null exception with worker_threads pools