Fix condition in SubProtocolWebSocketHandler

Issue: SPR-11884
Fix warnings from the sniff task