ui_test: fix testSimpleRelationFieldSearchDialogLongUrl random failure
This test was clicking on the first item in a non sorted list and then checking that the text of the selected element was "a2". Instead, store the text of the first listbox cell in a variable and use this in check.