Update knp_menu.html.twig

use "matchingDepth" instead of "depth" to match ancestor : could be able to determine ancestor even if menu item isn't show (hidden by depth)