Fixed #5924: fixed a bug of cc.Component that its onExit isn't called.
Merge pull request #2252 from dingpinglv/Iss5924_ComponentBug

Fixed #5924: fixed a bug of cc.Component that its onExit isn't called.