Fixed compatiblity with Nette 2.2 & latte/latte package