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