Check for logout before doing anything in index.php.
Fix error when viewing empty accounts tab.