Fix [#32315] *regression: Notices or fatal errors for categories menu it...

...em display.