[feature/revisions] Make the revision count increment/decrement properly
PHPBB3-10755