Media: Fix listing/counting media by folder request

(cherry picked from commit 3b9025cb)
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
5 jobs for 0.4.x in 12 minutes and 53 seconds (queued for 48 seconds)
Status Job ID Name Coverage
  Build
passed #247550
debian amd64
build-linux

00:02:36

passed #247551
win32
build-win32

00:02:42

passed #247552
win64
build-win64

00:02:38

 
  Unit Tests
passed #247553
debian amd64
unit-tests-linux

00:02:37

 
  Functional Tests
passed #247554
debian amd64
functional-tests-linux

00:02:18