Constraining the gas mass of Herbig disks using CO isotopologues