Zend\Db\TableGateway hotfix for MasterSlaveFeature

Fixed MasterSlave feature, as reported in #3175