Log out only if user was logged in

Not useful to trigger a logout signal if the user was not authenticated, for logging purposes