[PATCH 4.19 12/91] team: fix null-ptr-deref when team device type is changed