clang scan-build: Dereference of null pointer

Change-Id: I7d47d4465bca247d52899239b3d2112790eca579
DBG_ASSERT->assert when followed by dereference

Change-Id: Ic1c999ffdc391ea01be5711721e7c9e63179473e
coverity#1213080 Explicit null dereferenced

Change-Id: I8f696307164c30d1fd2b1214171982da426cf9b8