PDF: try to use the correct /ID value when /Encrypt is present during repairing (fixes issue 2697)