Fix KeyError exception when XBMC library is empty

+ change update_library logging