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
Merge pull request #4062 from markstory/issue-4031

Ensure that the driver schema dialects use is connected.