[PATCH 4.9 102/167] gma500: fix an incorrect NULL check on list iterator