(Bug 47079) onParserAfterTidy was missing an updateOutput()

Took me more time to write an appropriate test then to fix
the problem

Change-Id: I60798f8f312cacada4efd38c4aed74934ae5b7c7