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

Fixes #6812 
The `AdapterInterface#getItems()` defined return type is `array`, and it cannot be changed here.