replace CC_SAFE_RELEASE to CC_SAFE_RELEASE_NULL
Merge pull request #4911 from chengstory/fixesBugs_Develop

Fixes bugs on cocos2dx 3.x