Describe the bug
EXT:solr's RecordMonitor is throwing an exception for pages with extentToSubpages=1 when toggling from hidden=1 to hidden=0 and having a subpage with an unpublished draft version.
To Reproduce
Steps to reproduce the behavior:
- Set a page X to
hidden=1 and extendToSubpages=1
- Edit one of its subpages in WS module, don't publish though.
- Change page X in live workspace to
hidden=0
- See error
Expected behavior
No exception obviously ;-)
Screenshots

Used versions:
- TYPO3 Version: 11.5
- EXT:solr Version: 11.5.6
- PHP Version: 8.1