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

Fixes #6812 
This is a DIP violation