agent: Work around json-glib bogosity re empty strings in arrays

https://bugzilla.gnome.org/show_bug.cgi?id=730803

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Closes #614