luci-base: iface_get_network(): fix condition