The effect of dark matter resolution on the collapse of baryons in high-redshift numerical simulations