fix for Errai-751. Nullpointer when sideband without SSL

Hello Christian

An Nullpointer has occurred if the sideband was configured without SSL. I have moved the check for secure websockets from the factory into the server. It's better the place anyway.

Greez Michel