Fixes issue #2
Tests that session's user_id is present before converting it.

The returned error will direct the LoginController to display the homepage with that error message
as a flash.
Merge branch 'develop/logout-panic'