Fix RecentTabsTableViewController crash

Stop calling performBatchUpdates to insert or remove rows when there are
no changes. Calling `performBatchUpdates` with no rows to remove or
insert sometimes causes crashes if the table view is currently being
updated.

Fixed: 1328988
Change-Id: I9e8605b1de38f0b2836aef86295168e500a2b589
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3669228
Reviewed-by: Sergio Collazos <sczs@chromium.org>
Commit-Queue: Mike Dougherty <michaeldo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1007867}
NOKEYCHECK=True
GitOrigin-RevId: 299d3b7388fcb6e4e48878aaff0f54919e4fb67e
1 file changed