Fix NPE when a connection fails during pool construction (JAVA-503).