Fix account switcher requiring two tries on Firefox

Issue #1703.

I guess we're just too fast for cookie deletion.
How does it look now?