Fixes nunjucks compat reference to undefined obj

This doesn't seem to be in use here, so no bug filed against it. But when used externally, this fails due to `obj` being undefined (it should be `this` instead).