JSON Debug when adding media to the playlist

Minor bug fix.
When adding multiple files to playlist, with non-exisiting ID for the last item, the result array had a trailing comma separator, which invalidated the JSON.
Now the API returns null if media file not found.