Food for thought, I never check levelness on the trim. Always use the glass it self. The inside of the bottom pane for level in both directions and the side panels for plumbness vertically with a short level. You'll probably have to take an average. Tanks are pretty square but rimmed tanks can have the top trim be off.
Not trying to start this debate, but here's my opinion on foam... In case any one cares at least. if not skip this paragraph.

I always foam under my tanks regardless. I use closed cell foam from my local hardware store. It's very soft and highly compressible. It compresses to less than 1/16 on most of my tanks and starts out around a half inch thick. Some of my thanks have it just under the perimeter trim, and some thanks I have it under the entire thing. The absolute last thing I want is any sort of pressure points on my tanks lol. All of the tanks I have ever delt with are built just like most rimless where the sides sit on top of the bottom pane. So to me the foam on the entire bottom of these rimmed tanks won't have any adverse effects. However, having it around the perimeter does help SOME in case the corner to corner flatness is not perfect. If there is any rock corner to corner, the stand need to be repaired or shimmed. If you go with a foam that's taller than the height of the trim to the bottom pane, the entire weight of the tank will be even distributed over all of the foam, which in my opinion is a good thing. The weight of the water and tanks will always be greater than the vertical force applied by any foam.
But end of the day,personally, 40 gallon breeder, throw it on the table and if your good with how it looks, go with it. Next, be sure that the water is level with the over flow or you'll won't maximize the use of the overflow.