Fix: call TokenStream.end() before setting final offset

See LUCENE-3849