Fix broken assumption (JRuby-Nokogiri failure)