Experimentally, the molar volume of hydrogen gas is measured by reacting a piece of metal like magnesium with excess hydrochloric acid. The reaction which takes place is-
Mg (s) + 2HCl(aq)→ MgCl2(aq) + H2(g)
Since HCl is taken in excess, the limiting reagent is Mg. Thus, the molar volume of H2 formed would depend only on the number of moles of Mg.
Therefore, if a bubble leaked into a syringe containing HCl, that would not affect the measured volume or the molar volume of hydrogen gas.