[BUGFIX] Change code to fix failing test

Change-Id: I46e61fc281c35a22dbae13d1ad2b39a45b4c8c5c
Reviewed-on: https://review.typo3.org/26893
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer