Better handling of invalid shaders.

If shader is invalid the programm will be crashed.
The better way is to rise an assert and write message to the error log.
Platform: Windows
Explain: Functions in glew32.dll have non-standard call conversion. Typecast (GLInfoFunction) is invalid.