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
OpenBSD ports tree patches for EPROTO

Closes networkupstools/nut#44