Forgot an error check.

I was trying to use ServeHTTP to directly negotiate a websocket connection without
having to use an actual network connection (i.e., using a `httptest.ResponseRecorder`).
Doing so, I managed to trigger an error here but it wasn't checked which resulted
in a panic later.