Fixes a regression introduced in 8b742ee. The currentNode was being incorrectly added to the results array before it was checked to see if it was contained inside the supplied range.
8b742ee