set parent node status before filtering (#5471)
set parent node status before filtering (#5471)

Co-authored-by: Renze Yu <31fafa2bd578832030834566c42dddd936b16e18@microsoft.com>

dotnet/docfx,superyyrrzz/docfx,superyyrrzz/docfx,dotnet/docfx,superyyrrzz/docfx,dotnet/docfx