fixed #1862: CCScrollView::setContainer may cause dangling pointer when NULL is passed into.