Backport fix to tracked parameter in ExternalLHEProducer causing spurious run transitions (53x)

backport of https://github.com/cms-sw/cmssw/pull/5818/commits from 73x