fix inner loop of "remove" method
fix inner loop of "remove" method

as it is not guaranteed that the the chunk has parents the loop may not be run
this could lead to stale "this" still being a parent of one of its childs.
therefore we have to loop the chunks again.

EliteScientist/webpack,rlugojr/webpack,webpack/webpack,webpack/webpack,NekR/webpack,SimenB/webpack,g0ddish/webpack,ts-webpack/webpack,ts-webpack/webpack,SimenB/webpack,webpack/webpack,webpack/webpack,ts-webpack/webpack,jescalan/webpack,jescalan/webpack,SimenB/webpack,rlugojr/webpack,SimenB/webpack,EliteScientist/webpack,g0ddish/webpack,ts-webpack/webpack,jescalan/webpack,g0ddish/webpack,rlugojr/webpack,NekR/webpack