[BUGFIX] Cannot show information of a directory

Fixes: #52850
Releases: 6.2
Change-Id: I8e04e2fb9cf30a6692b450f076a0016a55f31f29
Reviewed-on: https://review.typo3.org/24796
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers