Add only valid triples to complex event.

In case of a nested query it is possible that not all variables can be
filled. In this case this triple will not be part of the complex event.