REP-139 fix six page edge case

For 6 result pages, being on page 1 rendered dots between 5 and 6 and on
being on page 6 rendered dots between 1 and 2.

Fixed that so the dots will now only be drawn, when there is
actually a page between skipped.
Merge pull request #12 from tomru/rep-139-fix-six-page-edge-case

REP-139 fix six page edge case