[PATCH 4.14 05/55] team: fix null-ptr-deref when team device type is changed