DDBNEXT-113: Bugfix for hiding empty hierarchies