Ensure parent path child cache is populated in Path.prototype.replace.