(#22362) Changes in const_defined?() on ruby 1.9 break Puppet::Util::Classgen