glsl: Explicitly NULL-check variables before making a dereference.