sync-service: fix criticals when glib-networking is not installed
When glib-networking is not installed, the response body will be empty. We need to handle this case. We'd need to do so regardless, because the response is untrusted input. Servers can send empty responses.
Fixes #2320 (closed)