Correctly set error code for missing SNMP version