#567: filter out empty folders.