Bug fix to remove empty message parts from pub output

Change to address bug resulting in empty message parts emitted on the nagmq pub socket.