team: fix null-ptr-deref when team device type is changed (CVE-2023-52574) | HOL Guard CVE