handle ValueError in pagination for querystring values that aren't ints. closes #145