Update IndexControllerFactory.php

I got an error without this line.
Merge pull request #4 from Voronchuk/patch-4

Update IndexControllerFactory.php