Update MasterSlaveConnection.php

check $this->keepSlave before enforcing master as slave