Work around emergent JRuby Nokogiri document validation issue.