#2387 Fixed a bug where the automatic selection of the first element behaved differently for the NewItemDialog.