avoid error with no content in Gson deserialization

Fixes #534