fix issue when we deny socket.io connection when users' model is not initialized