Unbiased determination of polarized parton distributions and their uncertainties