libubus: check for non-NULL data before running callbacks