Fix ROOT-6331: Properly handle protoclasses of hepmc

my commit but work of Axel :-)