Do not include epmty lines in the message header

Currently all messages include the Cc header even if there are no Cc recipients. This update removes all empty values from the header.