Avoid crash of GenParticles2HepMCConverter

Same for #5532

The GenParticles2HepMCConverter can crash if a particle's pdgId is not present in the HepPDT while setting the generated_mass.
The problem was spotted by Bhawan.
Query to get particle info with pdgId=102112 returns null pointer, causes segmentation fault.

As a solution, particle's generated_mass in HepMC is assigned to be same as the GenParticle's mass itself if it fails to get particle from PDT.
This is safe for the Rivet analysis since this information shouldn't be used in the particle level analysis.