[NUI] Enable relayout only when layout is set for the layer.