Fix for tests that were giving the error "v8::Context::Exit() Cannot exit non-entered context".