Adds a try-catch to handle parse errors in client.

Again, this is consistent with other errors in the file. E.g.

```
  var err = new Error('Origin is not allowed by Access-Control-Allow-Origin');
  err.crossDomain = true;
  this.callback(err);
```