Fixed issue causing failure of ThreadAgnosticAttributeTest.