Patched litepager for infinite scroll.  #2680

Off by one error kept litepager from realizing it was on the last page.  It produced a next link which infinite scroll kept clicking, even though it loaded content that had already been loaded.
Merge pull request #2865 from openscholar/2680-infinite_scroll

Patched litepager for infinite scroll.  #2680