coverity#1242423 Dereference after null check

Change-Id: If9c09fc56067610d36e3f8bd2a4e22ea743ddf5b
602 regression test

Change-Id: I044b9b445a7911e77424613145c7e4d152789f44