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