yes, there is stress if the tank trim isn't flush with the stand. you need to make sure the top of your stand is even and level so the tank sits flush.
If you search this website, you will find this topic covered many times.
Foam between the tank and stand is only for acrylic tanks so to eliminate possible "points" which can cause a crack in the acrylic.
For glass tanks with a rim, no foam is needed, just ensure your stand is flat and level.