[PATCH openEuler-5.10 393/427] tilcdc: tilcdc_external: fix an incorrect NULL check on list iterator