Do not send or publish events on web sockets when the payload is null

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>