Fix a possible null pointer dereference
Merge pull request #69 from lioncash/misc

[OGL] Fix a possible null pointer dereference