Correct error with RDF API search (sq) introduced in previous commit