fix bug 1054461 - make sure the "account connected" message only shows up if the account connection process is initiated on the edit profile page

Looks like we should re-factor this up into a test helper too? Since it's used here and in `test_pre_social_login_error_for_unmatched_login`