You have described the theory behind the trap seal correctly. Replacement caps are available but rare.

I have had to order one from my local hardware store for my 9" x 9" cast iron bell trap floor...