Don't check for the related items if erelated is empty.
Multiple fixes to RDF export.