PDF: tolerate documents where object 0 is missing (fixes issue 2517)
try slightly harder to keep inverse search working even if the files have been moved