Fix for Nette 2.2, undefined rules[id].op

This fix prevents gist from throwing errors in Nette 2.2. It also keeps this JS compatible with older Nette version.
Merge pull request #1 from hacafrakus/master

Fix for Nette 2.2, undefined rules[id].op