fixes null status error in Safari for latest version of websockets