Issue 9350 - findAdjacent infinite range warning

Fix Issue 9350

http://d.puremagic.com/issues/show_bug.cgi?id=9350
Added unittest for Issue 9350.
Merge pull request #1078 from Poita/bug9350

Issue 9350 - findAdjacent unreachable code warning with infinite ranges