Work around the fact that Contao\Database::getInstance() always creates an instance.

Contao\Database::getInstance() always creates an instance, even when no
driver is configured.
Therefore we must check that the Db is configured properly.
Cleanup uses in class BackendIntegration\Boot.