ubus: fix fw3_ubus_device() to only return a pointer if a device was found