Bug fixes for process_alert_email.rb and notify_mailer.rb