Fixed compatibility with Nette & Latte 2.2