fix: accessing a first list element on lists crashes

An empty iterator will crash on dereference.