Remove nodes that only include an id element in fromRdf