Fix preview and diff for deleted revisions.