Issue #19717: Makes Path.resolve() succeed on paths that do not exist (patch by Vajrasky Kok)