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 branch 'bugfix/9515_cannot_hide_sinq_poldi_algorithms' into develop