[BUGFIX] Class loader handles information about invalid classes

Resolves: #57117
Related: #56933
Releases: 6.2
Change-Id: Ie305b808b0a9b9e10b5adca4af9e2562cf5123f6
Reviewed-on: https://review.typo3.org/28577
Reviewed-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel