Make JsPath#prune retain the original path on success