Fixed access to null instance while grounding recursive rules