Update CCLuaEngine.cpp

Null pointer check in order to prevent crashes.
Merge pull request #2261 from flaming0/gles20

Null pointer check in order to prevent crashes.