correct selection after removing rows in playlist

the (updated) patch from #3997. Maybe it got lost...