Added compatibility with nette 2.2-beta1