Fixed Facebook crash and GCP duplicate dialogs

Fixed Facebook crash and GCP duplicate dialogs when backgrounding during linking