[BUGFIX] ControllerExtensionName can not be resolved in CLI mode

This fixes the resolution of the controllerExtensionName in CLI
context.

Change-Id: Ic0363a4e1b055aff813ddf8620403df5a4fa872f
Resolves: #49288
Releases: 6.2, 6.1
Reviewed-on: https://review.typo3.org/22794
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind