Fixed possible null pointer dereferencing bug in host_pidapi.c.
Fixed possible null pointer dereferencing bug in host_pidapi.c.

Change-Id: I8a3396c88a18d4356e51df0bc87944ec1afaa4d5

01org/intel-cmt-cat,01org/intel-cmt-cat,01org/intel-cmt-cat