Hack to get around Nokogiri bug (Spree issue #2663)