Fix removal of RDF literals.