Added compatibility with Nette 2.2-beta1