Fix NULL pointer dereference on PaX/GRSecurity patched Linux 3.3 and later kernels