prevent segfault when sending large playlists

Sends an error message when trying to send a playlist that doesn't fit
in the buffer.