[PATCH openEuler-5.10 364/427] drm/nouveau/kms/nv50-: atom: fix an incorrect NULL check on list iterator