(MainWindow.identify_view_on_demand): Do not pop up the dialog if the selection becomes empty (this could happen if e.g. a new selection is opened while the identify tool is active and dialog had been closed)