[PATCH 5.10 416/452] gma500: fix an incorrect NULL check on list iterator