Fixed some desyncing bugs around end-of-playlist.