coverity#1130358 Deference after null check

Change-Id: I3ce41c86f57ed65fd87d403e50df47e3343a5a41