SurfaceTextureClient: Add null-pointer check.

Change-Id: I3b69b92f59b4fd3fe28cc55816004b0dfe05549e
CRs-Fixed: 328648