Ensure there is a connection object within \OC_DB::enableCaching()
Merge pull request #12083 from owncloud/fix-occ-upgrade

Ensure there is a connection object within \OC_DB::enableCaching()