added check for the number of b hadron daughters some of which might be missing in the prunedGenParticles collection stored in miniAOD