Fixed #169 - Server crash

I think you can simplify this to just:
```js
return authTable[username].indexOf(token) > -1 ? username : null;
```
Assuming that there will always be an array at `authTable[username]`, and you don't need an extra check before you try and call `indexOf`.