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

See LUCENE-3849
Merge pull request #16 from itsadok/fix-final-offset

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