Fix #filter_sort_and_paginate to fix exception caused by invalid page numbers.
Fix #filter_sort_and_paginate to fix exception caused by invalid page numbers.

reidab/citizenry,reidab/citizenry,reidab/citizenry