Insights from simulations on the consequences of uncertainties in estimating the masses of observed galaxies