Hi Sid,
If you heat air but do not allow it to expand, it does not get less dense.
If you take a fixed mass oxygen and hydrocarbons and rearrange the structure of their respective electrons, the total mass does not change (as you already saw).
However, the question remains - will NR go up or down as the CO2 content increases?