[WIP 2.1] Zend\Db\TableGateway hotfix for MasterSlaveFeature

Fixed MasterSlave feature, as reported in #3175