XWIKI-9196: Issue filtering results in search results pages from the second page on
* Reset the pagination when a facet is applied.
* Remove unsed $end variable.
* Use $rows for pagination too (besides limiting the search results)