coverity#440822 dereference before null check

Change-Id: I3531f200c00f27fd2109041b58969ccccb7465ff