fix cocos2d::Data::clear to check nullptr before clear;