fix parsing issue for lhe per-event weights (71x)

backport of https://github.com/cms-sw/cmssw/pull/6340