The impact of baryons on the sensitivity of dark energy measurements