[BUGFIX] Omit constructor injection for optional parameters

ObjectManager tries to resolve and, in case of objects, inject all
constructor parameters, no matter what the calling function passes
to the constructor.

If the constructor value is optional, and no value or NULL is given
to the call, no constructor injection must take place for this parameter.

Change-Id: I646e6928cbadb486b1e2734efbe1ea5fbd953765
Resolves: #52349
Releases: 6.2
Reviewed-on: https://review.typo3.org/24128
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring