Fix null pointer exceptioin on SegmentInnerIterator. Fixes #14