Move null check into lookupIterator.
Merge pull request #1354 from braddunbar/iterators

Move null check into lookupIterator.