not going to start a debate on this one, but foam is only supposed to be used on tanks that are not supported by the trim around the tank. If you have a tank that has trim on it, it was designed to sit on the outer edges of the tank, not the bottom piece of glass. there are numerous threads about this and manufactures do or do not want you to use foam. If you have a tank that has trim on it and it is supported by the .25 inch edge trim, that will collapse the foam putting stress on the bottom piece of glass. If you have a totally glass bottom tank then you want foam. Do some research on this subject before you just stick it on there..
Foam is not intended to take away the unlevel portions of the stand top. The foam is only intended to take away pressure points that would cause stress. If you have any gap larger than a credit card thick, i would put another piece of wood on top of the stand and shim the wood to the stand and then put the tank on the perfectly flat piece of wood.
Zed, call me to discuss if you want.