I used an new/old O-ring I had around, probably from when I used cartridge oil filters. I just cut it to the needed length and jammed it in there -- didn't look to me like it was doing any more than sorta sealing against vapors so fitting a cut o-ring may not be a problem (it is a vented tank afterall).
May be able to find an o-ring at the hardware store that will suit.