correction of the filter visible in categoryTree.

If we use the parameter visible="1" in the loop category-tree, this test return always false : 
if ($visible != BooleanOrBothType::ANY) 

we need to compare the type as well with "!=="