Only attempt to parse JSON if the server returns some content