Bug 1035133 - [TestAgent] Check that the TestAgent object is here and di...+shepherd

...splay an error message otherwise r=yurenju
Tell me if you'd like that I listen to load and error event here as well. It's not necessary for what we need here but maybe it's cleaner?