Fix for logging message causing errors, include stacktrace in error emails that did not have the stacktrace. refs #7568