Do not try to map multiple orphan entries to the same file (see #6008)