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.
Merge pull request #3 from minhlab/patch-1

Prevent NullPointerException