Check for existing query group before trying to determine client.