fixed #1747: Crash occurs when passing null to cc.AnimationFrame.initWithSpriteFrame

Reported at http://www.cocos2d-x.org/boards/20/topics/22698?r=23342.