Something like that. `Rule` is instantiated without a node on line 888 (but your changes might have shifted it a bit). Have a look at that, as I think it will also need to be changed.