make resolveUrl work even if linked file could not be found