Making changes recommended in redmine 7945 

to fix SNMP enum module failing to catch some fail cases