fix crash on emailing error
Merge pull request #32 from kdmurray91/fix-emailcrash

fix crash on emailing error