avoid core dump, check rpc_worker_group pointer is valid before using it