[Playlists] Fix session issue caused by duplicate code.