SRWebSocket: remove a possible null pointer dereference