[PATCH 6.5 088/321] team: fix null-ptr-deref when team device type is changed