Improve error handling in jdbc_url_with_credentials so that missing configuration does not cause a crash