A sudden loss of vacuum can be catastrophic for superconducting particle accelerators. In such an event, air leaks into the liquid-helium-cooled accelerator beamline tube and condenses on its inner surface, causing rapid boiling of the helium and dangerous pressure build-up. Understanding the coupled heat and mass transfer processes is important for the design of the beamline cryogenic system. Our past experimental study on nitrogen gas propagating in a copper tube cooled by normal liquid helium (He I) has revealed a nearly exponential slowing down of the gas front. A theoretical model that accounts for the interplay of the gas dynamics and the condensation was developed, which successfully reproduced various key observations. However, since many accelerator beamlines are actually cooled by superfluid helium (He II) in which the heat transfer is via a non-classical thermal counterflow mode, we need to extend our work to the He II cooled tube. This paper reports our systematic measurements using He II and the numerical simulations based on a modified model that accounts for the He II heat-transfer characteristics. By tuning the He II peak heat-flux parameter in our model, we have reproduced the observed gas dynamics in all experimental runs. The fine-tuned model is then utilized to reliably evaluate the heat deposition in He II. This work not only advances our understanding of condensing gas dynamics but also has practical implications to the design codes for beamline safety.