Fix crashes on empty playlist. Fixes #51 :)