Render map when chat or ingame menu is open

I find it ugly when the map disappears when you open chat, your inventory, the ingame menu and any other kind of ingame gui. In my previous PR i did an attempt on fixing this, accidentally creating the flickering map bug. This PR lets the maps render in guis, but not in the map gui so doesn't cause the flickering. I have tested this and it works properly.