Fix for removing KML layers when opening web maps

Addresses #5