[PATCH v2 1/2] batman-adv: Check ptr for NULL before reducing its refcnt