fixed issue with model that caused it to crash when no consumer had a positive probability of consuming a resource (added an ifelse)