Fix for regression caused by 337226348c18a5e5359b3e305affb8d51aa687de

org.atmosphere.cpr.WebSocketProcessorTest#undetectedCloseWebSocketTest
was failing as a result of previous commit
(337226348c18a5e5359b3e305affb8d51aa687de)

fixes #1743
fixes #1774