Fixed off-by-one document length bug.

When adding document info, we forgot to subtract 1 from the stored token
length (for the "closing token" that may contain trailing punctuation).