identify results: don't close dialog when last feature/layer is removed (fixes #10415)