Backport of fix for GEOS-6332

Backport of pull request #476 to fix JDBCConfig behaviour when dealing with workspaces.