Preempt JSON.parse(null) bug in older browsers

In older browsers like that of Android 2.3.6, when JSON.parse() is passed a null value, it throws  "JSON.parse error illegal access" and breaks the flow of the code. This simple fix prevents that scenario.