Hide empty command categories during filtering