[PATCH 5.4 36/43] i40e: i40e_main: fix a missing check on list iterator