BUGFIX Even if there are zero items there is always at least one page.

Either TotalPages needs to return 1 even if there are zero items or CurrentPage needs to return 0 if there are zero items. Always having at least one page will be easier to deal with and introduces fewer changes.