Fix an issue where JWM lost track of the mapped state of windows when updating hints. This causes problems with some Qt applications such as VLC.