[BUGFIX] Optimizer is wrongly instantiated

Change-Id: Icc3588af646b7a4b90ce00cf3ee250f2cec4bfb8
Releases: 2.0.1
Resolves: #54799
Reviewed-on: https://review.typo3.org/26669
Reviewed-by: Fabien Udriot
Tested-by: Fabien Udriot