MDL-63973 core_badges: fix related badges count in the badges tabs