iterator: fix start after db end handling
Merge pull request #2 from juliangruber/start-after-db-end

iterator: fix start after db end handling