Fix bug related to the teacher invitation when teacher not exists in the moocng and log with SAML