check s-p-o for null values before adding the triple