Seems fine without it:

    irb(main):009:0> Host.first.puppetclasses.map{|p| p.try(:name)}
    => ["foreman", "puppet::server"]

Clean test run as well. Removing.