bug-fix: catch rare null variant issue

- catch instances where a variant was entered without
  setting a word id
bug-fix: catching null variants

- see previous commit
- try to prevent null variants at the edit phase