Fix the Paginator getTo() method not returning the correct values

Currently if we have for example 3 items and we are paginating 2 items per page, the `getTo()` returns 4 on the second page, when it should return 3.

This PR should fix this issue!