Fix for Iss 7: not capturing words of untagged docs

The script was not capturing word counts for changed documents when MODE = 1 and the document had no tag. This has been fixed.