catch value error

when no json object could be decoded from json-api