Fix to NoSuchElementException in BagOfWords and test for same. Fixes #199.
Merge branch 'master' of https://github.com/factorie/factorie