Tiny cleanup.

* remove unused skipDelta variable.
* make the nextToCheck computation in findElementAndText slightly cleaner