SelectionFactory: Fixed compatibility with nette 2.1