Fix exception when function editor is closed