On the measurement of the hadronic contribution to the muon anomalous magnetic moment