Improve initial INVITE handling and fix crash due to rapidly arriving CANCEL.