fixing case where playlistOld is undefined