[PATCH AUTOSEL 6.1 1/2] apparmor: fix possible NULL pointer dereference