guard against exception in layout children without measure