Fix snmp-ups segmentation fault

A basic sanity check was missing in the core code of snmp-ups, causing
a driver crash under some specific circumstances, at driver
initialisation time. Hence, this does not affect production systems