Fixed nette compatibility after https://github.com/nette/nette/commit/ba...

...801a3d6c05ceaa26e4f282988808445530dc37