[BUGFIX] Fatal error with "showEvenWhenEmpty"

Fixes: #41625
Releases: 3.0