Fixed compatibility with nette 2.2

....because https://github.com/nette/nette/commit/ad2e7830a2cb6df3e179f94d4166e9e681464803