Add safety check in wxQT list box item access (to avoid segmentation fault if null item is returned by qt)