Fix: FolderNotEmptyException is thrown for no good reason

- JPA caches getFiles()
1 job for new-method-to-load-galleries-list in 2 minutes and 12 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Compile
passed #39276
run tests in branches

00:02:12