Fixes #6812 : change Paginator::getItemsByPage($pageNumber) handle AbstractResultSet

Fixes #6812 
Urk, this would be a perfect use-case of generators