coverity#705817 Dereference before null check

Change-Id: Ia96b3e78b65ebea0d74267468906e9bda2ae3da6