[PATCH net 2/2] i40e: i40e_main: fix a missing check on list iterator