Do not dereference uninitialized iterator
Merge pull request #591 from igorko/master

Do not dereference uninitialized iterator