fix bug 1055565 - Don't show login on 404 page when the user is logged in

https://bugzilla.mozilla.org/show_bug.cgi?id=1055565