Fix editedFeature not being reset when opening a panel without closing