Added a check to ensure it is a GeoGit layer being removed before hiding the history panel.