Try to prevent warnings in Connection::ping()

PHP Warning: PDO::query(): MySQL server has gone away in .../vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:699
PHP Warning: PDO::query(): Error reading result set's header in .../vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:699