[PUB-290] Fixed jumpy document badges after a document update.