fix crash on empty playlist