Fix websocket long pull

Without this fix, sufficiently long websocket frames return uninitialized data and segfault at the next frame.

I also added two mg_cry() calls; dunno if they are appripriate.