[PATCH] stm: ltdc: fix two incorrect NULL checks on list iterator