Fix bug in OOME inside an OOME hampering run-test 061.

If we're throwing an OOME inside an OOME we don't want to clear the current
thread's throwing OOME flag.

Change-Id: I9aa362263dc4fca84f3d3a629c480112c3263008
diff --git a/src/thread.cc b/src/thread.cc
index 8487078..6d57403 100644
--- a/src/thread.cc
+++ b/src/thread.cc
@@ -1558,11 +1558,11 @@
   if (!throwing_OutOfMemoryError_) {
     throwing_OutOfMemoryError_ = true;
     ThrowNewException(throw_location, "Ljava/lang/OutOfMemoryError;", msg);
+    throwing_OutOfMemoryError_ = false;
   } else {
     Dump(LOG(ERROR)); // The pre-allocated OOME has no stack, so help out and log one.
     SetException(throw_location, Runtime::Current()->GetPreAllocatedOutOfMemoryError());
   }
-  throwing_OutOfMemoryError_ = false;
 }
 
 Thread* Thread::CurrentFromGdb() {