fix when currentPage is major than pageCount, fix inserting a NaN in inputs

I haven't tested this but I don't think it works in all cases. The current page in the session (and used when querying the collection) is 0-indexed, and the displayed current page returned by this is 1-indexed. So the returned value should always be 1 + what you set in the session.