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