lmjabreu/Bugsense-JS-Client — pull request #4 by Orif (2014-03-17 21:30:02+00:00)
Title: Empty stacktrace is causing an issue on server-side

*Error:* ``` object of type 'NoneType' has no len() ```
*file:* bugsense.js
*method:* generateExceptionData
*line:* 1371

```js
'backtrace': stacktrace
```
should be replaced by a safe statement, like
```js
'backtrace': (stacktrace && stacktrace.length) ? stacktrace : []
```