ubusd: add missing NULL pointer checks for ACL processing