pjsip_messaging, pjsip_header_funcs: Crashes due to NULL pointer dereferences