Warn instead of throwing an exception in LCDUIUtil::setObjectTrait

This is needed to make RLinks work.