Palantir won't be hurt by Pentagon cuts, analyst says — and the stock pops 5%