Merge "msm: kgsl: Check for valid pointer before dereferencing"