On the estimation of the local dark matter density using the rotation curve of the Milky Way