checking OpenGL error flag before loading any texture

GLKTextureLoader always fails if 'glGetError()' is not clean -- even though the error actually happened somewhere else. So we better remove any pending error before initiating the loading process.