check if currentShader exists - prevents segfault
Merge pull request #2483 from jvcleave/bugfix-shader-null-check

check if currentShader exists - prevents segfault