Maybe you could refactor to 

```javascript
if (content && (content !== "Please wait...")) {
    var returnData = content;
    try {
        ...
    } catch (err) {
        ...
```