Fixes crash for when `@token` is `null`

```javascript typeof null // "object"``` leading to the subsequent operation -> `@{null}.username` which in turn throws:

```
  TypeError: Cannot read property 'username' of null
```
Merge pull request #143 from waltervascarvalho/patch-1

Fixes crash for when `@token` is `null`