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