[BUGFIX] Cannot render single-directory Sphinx project

Change-Id: I0769292e6fd8ec700c343584b07286b659fad7bf
Fixes: #57493
Reviewed-on: https://review.typo3.org/29025
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers