Fixed wrong behavior in destroyoutsideruntimeautomatism.js.