coverity#1251173 Dereference before null check

Change-Id: I2e7f98f6b2df5f87be546606f86fd29202050d87