Fixes an issue in Android 2.3 where JSON.parse-ing `null` throws an exception

@noahadams have a look please!