You can offset the glitch with another. Wear any pre-war outfit that grants +1 AG, then sell it to the Sierra Madre vending machine in the Abandoned BOS bunker. Of course, that requires having Dead Money.
And completing it, since you need the 'Return Outfit' code for the machine before it will accept them.
Do bear in mind that the AGI boost from the Vending Machine Glitch will
not count when determining if you have enough AGI for certain perks, as it checks against base values rather than boosted ones.