Various fixes for playlist proxy: fix possible crash on error, rendering artifacts and incorrect length