Fixed compatibility with Nette 2.2.2 [closes #3][closes #4][closes #5]