[fix] fix crash on parsing invitation error