Determining protoplanetary disk gas masses from CO isotopologues line observations