Effects of magnitude uncertainties on estimating the parameters in the Gutenberg-Richter frequency-magnitude law