[feature/revisions] Fix restoring a revision via AJAX

PHPBB3-10755