The stub Threading implementation (which doesn't implement threads) has isMainThread returning false, while in fact code will always be in the main thread with the stub implementation.
Created attachment 25193 [details] Have isMainThread return true
Landed in r38437, thanks!