[PATCH 5.10 052/226] team: fix null-ptr-deref when team device type is changed