Adding more songs than playlist limit to a playlist results in console error

If you try to add a queue with more than 250 (by default) songs to a playlist, the UI says that everything finished successfully, but actually nothing is imported.