Fixed issues with cc feature branch
This fixes 2 issues when the cc email address is empty (which is in most cases):
- It caused a key error in sendMail, so I put in a check to see if it exists in the parameters list before checking if it's None.
- It caused an empty line between the "To" and "Subject" header fields which need to be together, so I made a migration script to remove a newline in the templates.