Fix compatibility with v2.1-dev of the Nette