Fix bug that corrupts the menu after deleting menus

14 jobs for mlong/xtrnmenucfg in 16 minutes and 25 seconds (queued for 9 seconds)
Status Name Job ID Coverage
  Build
passed jsdoor-freebsd #6227
FreeBSD

00:05:18

passed jsdoor-linux #6228
Linux

00:05:57

passed jsdoor-windows #6230
FreeBSD

00:03:41

passed sbbs-freebsd #6222
FreeBSD

00:06:26

passed sbbs-linux #6217
Linux

00:07:59

passed sbbs-windows #6220
Windows

00:06:56

passed sexpots-freebsd #6229
FreeBSD

00:00:09

passed sexpots-linux #6218
Linux

00:00:10

passed sexpots-windows #6221
Windows

00:00:47

passed syncdraw-freebsd #6225
FreeBSD

00:00:22

passed syncdraw-linux #6226
Linux

00:00:26

passed syncterm-freebsd #6223
FreeBSD

00:01:15

passed syncterm-linux #6219
Linux

00:01:51

passed syncterm-windows #6224
FreeBSD

00:02:23