[NUI] Fix warning by checking null argument in LayoutGroup