res_pjsip_sdp_rtp: Restore removed NULL check.