Prevent NullPointerException

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