selinux: Fix Kernel panic due to NULL pointer dereference