Have you checked modelCom.indCom.spBm? Is there some zeros in there? This probably means that the biomass reaction for some organism is not properly specified. You can add the reaction indices by:
rxnBiomass = (names of the biomass reactions)
rxnBiomassId = findRxnIDs(EcCom, rxnBiomass); % get rxn ids
modelCom.infoCom.spBm = rxnBiomass;
modelCom.indCom.spBm = rxnBiomassId;
See if that works. You can look at the tutorial here:
https://opencobra.github.io/cobratoolbox/stable/tutorials/tutorialSteadyCom.html