Bug 771425 - Uploading report sometimes fails with 'No JSON object could be decoded'. r=hskupin

(cherry picked from commit 7eded93716d620f1f3c8473e9825e21718a92b56)