fix the panic when client side emits nil data

This is a fix to https://github.com/googollee/go-socket.io/issues/51