Disable the "show/hide history" item in the context menu if it isn't a geogit layer