[PATCH 6.1 075/259] team: fix null-ptr-deref when team device type is changed