Update selection after changes in underlying data source (#13580).

Change-Id: I6354d85bd6bc37b1cbb69f388559278d5a163256