Bug 904136 - Intermittent test failure: TEST-UNEXPECTED-FAIL | simple-prefs/main.testAOM | Timed out

Fixing a race condition, waiting for the document to completely load before running test code.