Fixed bug #20200 : Invalid JSON produced with specific error messag