Changed Control::SetLayout to handle empty layouts