Handle the case when response is not JSON

Not sure why it's happening, but it's happening on linux/chrome