Fix for bug #21298: Minimap shows invisible overlays