Handle nil-block in iterators
Merge pull request #338 from troessner/issue-333-fix-nested-iterators

Handle nil-block in iterators