Look here: Director::getInstance()->getRunningScene() returns NULL
@ricardo discusses this in the perfect manner.