Fix a bug in Phi node translation in cap-stack mode.