Bug 1027740 - Make accessibility UI test failures more verbose

We can get here if !acc, which will cause confusing exceptions in the fired callbacks, e.g., in getName() and getRole().  We either need to return an error here if !acc, or carefully handle all of the places in the callbacks where acc is used.