tipc: fix NULL pointer dereference in shutdown()