Fix for bug in isSyncGateway