Crash on attempt to undo table align - PCB

Description

Any attempt to undo an align operation on a table on PCBNew crashes it.

Steps to reproduce

Create a table on a PCB. Any table with more than 1 box will do. Select two or more boxes, right click and select "Align/Distribute". Click any of the Align options. Apart from the fact that many of them do nothing, and many others corrupt the table, now try to undo the "Align".

It crashes. Every time. Very repeatable.

KiCad Version

Application: KiCad x64 on x64

Version: 9.0.7, release build

Libraries:
	wxWidgets 3.2.8
	FreeType 2.13.3
	HarfBuzz 12.2.0
	FontConfig 2.15.0

Platform: Windows 8.1 (build 9600), 64-bit edition, 64 bit, Little endian, wxMSW

	wxWidgets: 3.2.8 (wchar_t,wx containers)
	Boost: 1.89.0
	OCC: 7.9.2
	Curl: 8.17.0-DEV
	ngspice: 45.2
	Compiler: Visual C++ 1944 without C++ ABI
	KICAD_IPC_API=ON

Locale: 
	Lang: en_GB
	Enc: windows-1252
	Num: 1,234.5
	Encoded кΩ丈:  (sys), D0BACEA9E4B888 (utf8)