swconfig: avoid setting "NOVAL" attributes if "0" was provided as a value (backport...