Fixed compatibility with Nette 2.2.2

Similar fix as in nextras/latte-macros@f8d4c32a3ebfd8c59623abb44b29500ac9d067ec.