Wrong null check.
Fix SHA1 term digester.
Fix stuff
Fix incorrect SHA1TermDigester.state.