do not try to remove undefined iterators