Fixed tilemaptest crashes when click 'next' button quickly
Invokes 'Node::onExit' only when the node is running.
Merge pull request #6343 from dumganhar/fixed-tilemaptest-crash

Fixed tilemaptest crashes when clicking 'next' button quickly, it could be reproduced on win32