Fixed issue where categories were not being hidden

Categories were not being hidden when a parent category was hidden. Now,
categories are hidden whenever either the category itself, or one of its
parents is set as hidden.

Refs #9515
Merge remote-tracking branch 'origin/bugfix/9515_cannot_hide_sinq_poldi_algorithms'