Fixed compatibility with Nette 2.2 & latte/latte package