ATLEDGE 201 Pointer returned may be null
ATLEDGE 201 Pointer returned may be null

Added a check for this null pointer.

Signed-off-by: Kevin Moloney <8d8bc1a72c6f3e47b067d54d8af800cedf125850@emutex.com>

bigdinotech/corelibs-arduino101,yashaswini-hanji/corelibs-arduino101,sgbihu/corelibs-arduino101,01org/corelibs-arduino101,01org/corelibs-arduino101,eriknyquist/corelibs-arduino101,sandeepmistry/corelibs-arduino101,sandeepmistry/corelibs-arduino101,facchinm/corelibs-arduino101,linrjing/corelibs-arduino101,yashaswini-hanji/corelibs-arduino101,SidLeung/corelibs-arduino101,bigdinotech/corelibs-arduino101,sgbihu/corelibs-arduino101,yashaswini-hanji/corelibs-arduino101,sandeepmistry/corelibs-arduino101,bigdinotech/corelibs-arduino101,sgbihu/corelibs-arduino101,SidLeung/corelibs-arduino101,facchinm/corelibs-arduino101,01org/corelibs-arduino101,linrjing/corelibs-arduino101,eriknyquist/corelibs-arduino101