Log out only if user was logged in

Not useful to trigger a logout signal if the user was not authenticated, for logging purposes
Merge pull request #96 from zoten/master

Log out only if user was logged in