Small fix to showMapPanel variable check

If showMapPanel variable was not defined it was not showing the map but it should.