hwc: Add NULL check for gralloc private_hnd_t

Add NULL check for private_hnd_t before assigning
to a buffer.

Change-Id: I302be85a68cf024740223faf718081c390f73b61
1 file changed