Don't crash on iOS 5.x when using WebSockets on Safari resume

Repro steps here: https://gist.github.com/mloughran/2052006