Pooja: removed nil entries of error msg from json