ref #8774: remember expansion state when removing feature from feature tree