[PATCH 4/6] batman-adv: Check ptr for NULL before reducing its refcnt