Preventing duplicate rdf:rest rdf:nil triple

Adding test for existing rdf:rest rdf:nil triple to prevent a duplicate triple that resulted in broken RDF lists when there were multiple items in the list.