If no dissociation were to occur,

It is important to note that the above relation between degree of dissociation and densities is applicable only when the reaction is accompanied by change in total number of moles. This relation is not applicable to reactions in which number of moles of the reactants and products are equal as in the formation or decomposition of HI.
H2 + I2 ⇄ 2HI