Merge pull request #12947 from Dentomologist/qtutils_clearlayoutrecursively_fix_potential_crash QtUtils/ClearLayoutRecursively: Fix potential crash