Make sure cc/bcc header set with valid value

Supposed to fix #274, value passed to $header is neither empty nor only white space.