Bug #3887 Check existance of secret key in generateSignUpLink

Because of the fact that the imported profiles do not have secret key, so the secret_key must be checked whether it exists or not before the sign up email is sent.