[BUGFIX][TEST] Creating default object from empty value

Change-Id: I9c142599edca66d7cc53125941b74948cc83e983
Fixes: #52738
Reviewed-on: https://review.typo3.org/24699
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers