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
```