fix: panic when inject serve (#42000)
fix: panic when inject serve (#42000)

Co-authored-by: hexiaodai <18125bd2762d07644d22bbf8b7a2ee39886bd979@daocloud.io>
istio/istio,istio/istio,istio/istio,istio/istio,istio/istio