Fixed bug with IApplicationContext.InvokeOnMainThread.

Now after execute IApplicationContext.InvokeOnMainThread JSEngine clear scope and run method in other context