Add error checking when getting data from XBMC