Prevent NullPointerException

When converting other formats to NAF one might not know that he needs to add a &lt;term&gt; for every &lt;wf&gt;. The resulting NullPointerException is not trivial to debug.