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

Fixes #6812 
Instead, I'd suggest allowing `Traversable` in `getItems` and using `iterator_to_array()` or similar logic here.