Fix calculation of page number when using go to last page control
Merge pull request #1041 from Zentyal/jag/fix-go-to-last-page

Fix calculation of page number when using go to last page control