Selecting model element by index is corrected (#13216).

Change-Id: I5b1560d468393af8b6460e8dc3919a1b884e22cc