Fix browserid infinite loop on login failure