Automatic annotation can get out of sync with page numbers

Description

In a multi-sheet schematic using the "sheet number X 100" annotation style, newly-placed parts will have incorrect annotations if sheets are deleted from the schematic. Deleting sheets will result in gaps in the page numbering (this is correct behavior in my opinion) but newly-placed parts on sheets "after" a gap will have annotations that don't match the page number.

KiCad Version

Application: KiCad arm64 on arm64

Version: 8.0.6, release build

Libraries:
	wxWidgets 3.2.5
	FreeType 2.13.2
	HarfBuzz 8.3.0
	FontConfig 2.15.0

Platform: macOS Sonoma Version 14.5 (Build 23F79), 64 bit, Little endian, wxMac

	wxWidgets: 3.2.5 (wchar_t,wx containers)
	Boost: 1.84.0
	OCC: 7.7.2
	Curl: 7.87.0
	ngspice: 42
	Compiler: Clang 14.0.3 with C++ ABI 1002

Build settings: