Fix regression when instantiating a class with child views

[Delivers #82011138]