[BUGFIX] FollowUp to #55926: TSFE might be stdClass

Change-Id: I1173b1d63b68f710ad645d6410e2ddc38ae5155d
Reviewed-on: https://review.typo3.org/29500
Reviewed-by: Olivier Dobberkau
Tested-by: Olivier Dobberkau