res_pjsip_mwi.c: Fix null pointer crash