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