Fix for removing KML layers when opening web maps