rem: gDefaultAccount = accountm.defaultAccount; 
add: try { gDefaultAccount = accountm.defaultAccount; } catch (ex) {   gDefaultAccount = null; } 
context: function onLoad() {    gPrefsBundle = document.getElementById("bundle_prefs");    gMessengerBundle = document.getElementById("bundle_messenger");    // wizard stuff    // instantiate the Wizard Manager    wizardManager = new WizardManager( "wizardContents", null, null,                                       gWizardMap );    wizardManager.URL_PagePrefix = "chrome://messenger/content/aw-";    wizardManager.URL_PagePostfix = ".xul";     wizardManager.SetHandlers(null, null, onFinish, onCancel, null, null);		/* We are checking here for the callback argument */	if (window.arguments && window.arguments[0])		if(window.arguments[0].okCallback ) 		{//			dump("There is okCallback");			top.okCallback = window.arguments[0].okCallback;		}    // load up the SMTP service for later    if (!smtpService) {        smtpService =            Components.classes["@mozilla.org/messengercompose/smtp;1"].getService(Components.interfaces.nsISmtpService);    }    checkForInvalidAccounts();    var pageData = GetPageData();    updateMap(pageData, gWizardMap);    // skip the first page if we have an account    if (gCurrentAccount) {        // skip past first pane        gWizardMap.identity.previous = null;        wizardManager.LoadPage("identity", false);    }    else        wizardManager.LoadPage("accounttype", false);        gDefaultAccount = accountm.defaultAccount;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a26ec78d01a6f9d20758701b662ef0f4bcc45b2a/AccountWizard.js/clean/mailnews/base/prefs/resources/content/AccountWizard.js