Fix timer bug with script engine

	Occurs when Script.clearInterval() called inside
Script.setInterval callback
Merge pull request #3442 from Atlante45/script_engine_fix

Fix timer bug with script engine