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