text item with hyperlink: false infobar-message if page is not available

Description

If the destination-page in a text-item-hyperlink is not available a error-info-bar at the top is displayed. This info-message shows a very big, very false page number.

This issue should get a priority smaller than low.

Steps to reproduce

  1. open attached project, open schematic: link_warning_bar.zip
  2. examine the text-item at the bottom: hyperlink with unavailable destination-number (see picture 1)
  3. click on the text-item: info-bar shows unbelievable page-number (see picture 2)

hyperlink_02

KiCad Version

Application: KiCad Schematic Editor x64 on x64

Version: (6.99.0-5337-gc57e6db79a), release build

Libraries:
	wxWidgets 3.2.1
	FreeType 2.12.1
	HarfBuzz 5.0.1
	FontConfig 2.14.1

Platform: Windows 10 (build 19044), 64-bit edition, 64 bit, Little endian, wxMSW

	wxWidgets: 3.2.1 (wchar_t,wx containers)
	Boost: 1.80.0
	OCC: 7.6.2
	Curl: 7.86.0-DEV
	ngspice: 38
	Compiler: Visual C++ 1934 without C++ ABI

Build settings:
	KICAD_SPICE=ON