Fixed bug when calling JSON.parse with null argument