AccountService: Implements default account failsafe

Implements one of the fixes outlined in issue #2637.

/cc @sendhil + @astralbodies + @koke 

This falls somewhere between convention / personal pref, but could we move the variable declarations to the top of the class?  I found myself hunting a bit before I found where defaultDotcomUsernameKey was defined.