remove glGetString that can return NULL

closes #2824