fix possible error in SockJS handler
small doc changes