bug 854609 - clear record before showing connection fail alert

to prevent it overwrite correct connection status because alert popup is
a blocking UI. Status may be changed within the time period.
Merge pull request #9109 from evelynhung/issue-854609

bug 854609 - clear record before showing connection fail alert, r=arthur