Fix bug: OksAttribute::get_enum_value() may throw an exception