check_snmp: small improvement

Just turning attached patch of github issue #1029 into a push request