Make sure cc/bcc header set with valid value

Supposed to fix #274, value passed to $header is neither empty nor only white space.
Merge pull request #295 from PoPoutdoor/fix-triple-new-mail-sent

Make sure cc/bcc header set with valid value