Optimize Model::getActiveValidators()

Remove extra iteration in Model::getActiveValidators() method.