Fix binary websocket connections

Commit 7a0eda13 broke binary websocket connections:

```
UnboundLocalError: local variable 'decoded' referenced before assignment
```