jsonplatform.c: Add fix for dereferencing of a null pointer
jsonplatform.c: Add fix for dereferencing of a null pointer

Signed-off-by: Adelin Dobre <32e999dcccd546abaa06d2d802673f20fbffda76@rinftech.com>
Signed-off-by: Mihai Tudor Panu <a27de6130c5d32f5817bf40bb8b348582f37a8af@intel.com>

g-vidal/mraa,Propanu/mraa,KurtE/mraa,g-vidal/mraa,Propanu/mraa,intel-iot-devkit/mraa,Propanu/mraa,Propanu/mraa,KurtE/mraa,g-vidal/mraa,intel-iot-devkit/mraa,intel-iot-devkit/mraa,intel-iot-devkit/mraa,KurtE/mraa,g-vidal/mraa,KurtE/mraa,intel-iot-devkit/mraa,Propanu/mraa,KurtE/mraa,g-vidal/mraa