Fix Pagination/search boolean checks, fixes #2141