Necessary condition for equilibrium in stellar systems with a continuous mass spectrum