Fix compatibility in Doctrine\DBAL\Connections\MasterSlaveConnection