Empty text in ui object

When you use callbacks and option tags doesn't have a title attribute, the field called 'text' in the ui object is empty. With this commit, if title attribute is empty, the text field is filled with the text of option tags.