gl: Silence a possible null dereference warning
Merge pull request #1000 from lioncash/deref

gl: Silence a possible null dereference warning