Check for null context when preprocessing RDF