Fix CustomLayout child rendering when template is missing (#8696)

Change-Id: I8ce4fbc566f030bf22c555f68b97beb781b19805