When inserting elements into an XListBox, you always need to specify an index (or use -1 to insert at the end), using addItem. There should be an appendItem method which has only one parameter (the entry as string) and adds the item at the end of the listbox.
Note that XListBox is a published interface, so you're not allowed to change it AFAIK.
Ok, then probably not worth the hassle.