Fix indexing issue when getting next item in the playlist.