The rubber on mine was shot, so I just used two layers of
electrical tape. The only function of the "gasket" is to keep the glass out of direct contact with the metal, which can cause a stress concentration and breakage.
I didn't leave it like this for long, as I installed a larger panel.