Ensure that the driver schema dialects use is connected.

Failing to connect the driver causes failures when identifiers are quoted using cached schema objects.

Fixes #4031
Should the driver try to connect instead when it requires the connection to be used?