Matreial editor crashes with colapsed nodes inside material function

As the title says I had serveral Matreial Editor crashes with collapsed nodes inside material functions. It crashes the whole editor. I sent bug reports.
It don’t crashes when the nodes are not collapsed. So I guess it’s related to the problem.