tracing/kprobe: Fix NULL pointer deref check