[PATCH 5.15 059/183] team: fix null-ptr-deref when team device type is changed