snmpv2: allow some arguments to be empty

allowing empty arguments makes it possible to use the same commandline for v2 and v3 hosts
with using nagios macros. In case of v2 hosts they are empty, which leads to an '... requires
an argument' error at the moment.