Stopped production of triples with null objects.

Checked for null objects before producing a triple because some RDF
parsers choke on null triple components.