Restore the default SIGSEGV handler during pan_ic

Leaving it enabled could hide panics.

Fixes #1639
Check pointers before dereferencing - avoid SIGSEGV while panicking