Don't attempt to redirect after login, when coming from "logout".

Additional fix for @SilverClash’s change.