avoid startPosition in "locate" function if we're searching from the begining
Merge pull request #279 from amroel/NH-3629

NH-3629