[BUGFIX] Restrict visibility settings to page module classes

Change-Id: I50fd93d627f5323f50e61af5afe214da229d8aa8
Resolves: #58175
Reviewed-on: https://review.typo3.org/30054
Reviewed-by: Peter Kraume
Tested-by: Peter Kraume
Reviewed-by: Jo Hasenau
Tested-by: Jo Hasenau