Fix manual playback of a repeated playlist.

Bug was introduced in 57ed2035.