Search issue

Fixes off-by-one error in query controller, which resulted in an incorrect number of search results per page. Closes RT#407475.