Merge "SurfaceTexture: fix a NULL ptr dereference."