Refreshed state of marker initial visibility right before its info window is shown

This is a quick fix for bug #222

Basically, the marker's initial visibility is checked again right before the window is shown, so when the info window closes, it sets the marker visibility correctly.

However, there's still some weirdness if the marker's visibility is changed manually while its window is up....