hnetd: fix a segfault in ubus handling code