added checking for empty params to avoid crashing the server
added checking for empty params to avoid crashing the server

iliyan-trifonov/chat-nodejs-angularjs-socketio,iliyan-trifonov/chat-nodejs-angularjs-socketio