ubus: use list_empty() instead of the compat wrapper