[NUI] fix disposing crash when layouter is null (#3050)