team: check return value of team_get_port_by_index_rcu() for NULL