Handle non-valid JSON

The webservice returns an javascript alert response if the request limit
is reached.