Fallback to invitation.email when invitation.user.email is not set
Fix issue with signal when code is not set