Fix a bug introduced in v1.21.0 which could cause `/sync` to return immediately with an empty response.