Fix missing linefeed in sendevent when there is no body for the event.

When no body is specified, an extra LF needs to be sent.