Update IndexController.php

For some reason $this->session->offsetGet('backend') sometimes is equal to boolean true. Need this hack to logout without errors
Merge pull request #8 from Voronchuk/patch-6

Update IndexController.php