fix for issue 131 Saving new created mail message causes application to crash and DiagnosticDialog code cleanup