[BUGFIX] Cannot authenticate if no config is available

Fixes: #60222
Change-Id: I3fe9174670946ca6c6b44ff53d3fb1e8a24d3d30
Reviewed-on: https://review.typo3.org/31547
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers