inject: Fix handling of messages with no body

If there is no blank line following the header (and hence no body), the
last line of the header may be duplicated in the body of the message.
This fixes that boundary condition.