Gracefully handle sign out when there is no authenticated user

This will fix the occasional spurious errors we're seeing in production apps when a user logs out, then hits the browser's back button and clicks the logout link again on the cached copy of the page.