Fix [EZP-22342] Hidden state on Locations is not taken into account in c...

...ustom controllers added in the DemoBundle

This is a follow up https://github.com/ezsystems/ezpublish-kernel/pull/732.