Update IndexController.php

For some reason $this->session->offsetGet('backend') sometimes is equal to boolean true. Need this hack to logout without errors