Stop JDBCConfig from exhausing iterator when paging.  Fixes GEOS-6331

Removes the redundant trimming of paged lists in JDBCConfig.  Also fixed a broken unit test.