coverity#983373 Dereference before null check

Change-Id: Ie2a6b5e71f76ff2900ff078fcc098e66927458ef