[PATCH 5.10 575/599] batman-adv: Check ptr for NULL before reducing its refcnt