[PATCH 6/6] treewide: remove check of list iterator against head past the loop body