fixed #2315: [JSB] Iterating through cc.Node children causes crash.