critical fix: now catches KeyError exception when the mpd playlist is empty