Fixed segfault in nodelist iterator