[PATCH] gma500: fix an incorrect NULL check on list iterator