add error handleing
Merge pull request #2972 from syuvivida/62x_fixpowheg2

Generator fixes -- added error handling