Fix bug in dbmail when extra headers are not set.
Merge pull request #1127 from learning-unlimited/dbmail_minorexceptionfix

Fix bug in dbmail when extra headers are not set.