Measuring Hard X-Ray Polarization of Solar Flares with RHESSI