Only redirect on logout if we're not already redirecting

Use case: An extension where the logout process has to go through another site. Allows using Controller#redirect, rather than header() and die().