Prevent layout blowing up with no logged in user

This currently causes the failure page to blow up because current_user is nil.