Fix compile
Core/Gossip: Add missing check for only class trainers in 46374bf533987b492abd590d7cd2ae182b35bd39