--- lib/mhamain.pl.orig	Thu Mar  2 09:38:22 2017
+++ lib/mhamain.pl	Thu Mar  2 09:38:33 2017
@@ -1562,7 +1562,7 @@ sub signal_catch {
 ##
 sub defineIndex2MsgId {
     no warnings qw(deprecated);
-    if (!defined(%Index2MsgId)) {
+    if (!%Index2MsgId) {
 	foreach (keys %MsgId) {
 	    $Index2MsgId{$MsgId{$_}} = $_;
 	}
